﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewKataminoSolver
{
    // This is the fourth version of:
    // http://www.yoda.arachsys.com/csharp/singleton.html
    // It is non-lazy, that means it will be initialized before first use..
    public sealed class Singleton
    {
        static readonly Singleton instance = new Singleton();

        // Explicit static constructor to tell C# compiler
        // not to mark type as beforefieldinit
        static Singleton()
        {
        }

        Singleton()
        {
        }

        public static Singleton Instance
        {
            get
            {
                return instance;
            }
        }
    }
}